html {
    // 750的设计稿中：1REM=100PX
    font-size: 100px;
}

html,
body,
#app {
    height: 100%;
    overflow: hidden;
}

#app {
    position: relative;
    margin: 0 auto;
    max-width: 750px;
}

/* 公共样式 */
@CW: #FFF;
@CH: rgba(255, 255, 255, .5);
@CG: #ff3a3a;

.text-clip {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.bg-image,
.bg-mark {
    position: absolute;
    top: -.2rem;
    left: -.2rem;
    width: 120%;
    height: 120%;
}

.bg-image {
    z-index: -2;
    background: url('../images/tonghuazhen.jpg') no-repeat;
    background-size: auto 100%;
    background-position: 50%;
    filter: blur(30px);
}

.bg-mark {
    z-index: -1;
    background: rgba(0, 0, 0, .5);

    .top-mark {
        position: absolute;
        top: 0;
        width: 100%;
        height: 2rem;
        background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
    }

    .bottom-mark {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 70%;
        background: linear-gradient(rgba(0, 0, 0, 0), rgb(0, 0, 0));
    }
}

// 头部
.header-box {
    padding-top: 1.4rem;
    height: 50%;
    box-sizing: border-box;
    position: relative;

    .base-info {
        width: 4.94rem;
        height: 4.94rem;
        margin: 0 auto;
        position: relative;

        .record {
            position: relative;
            width: 100%;
            height: 100%;
            background: url(../images/changpian.png);
            background-size: cover;
            border-radius: 50%;
            box-sizing: border-box;
            z-index: 2;


        }

        .needle {
            position: absolute;
            top: -1rem;
            left: 50%;
            width: 1.47rem;
            height: 2.4rem;
            margin-left: -.3rem;
            transform: rotate(-7deg);
            transform-origin: left top;
            background: url(../images/needle-ab.png);
            background-size: cover;
            z-index: 3;
        }

        .Album {
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -1.8rem 0 0 -1.8rem;
            background: url(../images/tonghuazhen.jpg);
            background-size: contain;
            border-radius: 50%;
            width: 3.6rem;
            height: 3.6rem;
            z-index: 1;

            &.move {
                animation: music-move 25s linear 0s infinite both;
            }
        }
    }

    .base-info::before {
        position: absolute;
        content: '';
        width: 100%;
        height: 100%;
        border: 1rem solid rgba(0, 0, 0, 0);
        border-radius: 50%;
        box-sizing: border-box;
    }

    .broadcast {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, 0);
        width: 1.2rem;
        height: 1.2rem;
        background: url(../images/bofang.png);
        background-size: contain;
        z-index: 5;
    }
}

@keyframes music-move {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

// 歌词
.main-box {
    padding: 0 .7rem;
    box-sizing: border-box;

    .song-info {
        display: flex;
        justify-content: center;
        text-align: center;
        line-height: 1;
        color: #fefefe;
        .text-clip;

        .title {
            font-size: 18px;
            font-weight: 400;
        }

        .gap {
            font-size: 18px;
            margin: 0 4px;
        }

        .autr {
            font-size: 16px;
            font-weight: 400;
            color: hsla(0, 0%, 100%, .6);
        }
    }

    .lyric {
        position: relative;
        margin-top: .3rem;
        height: 1rem;
        overflow: hidden;
        font-size: 16px;
        -webkit-mask: -webkit-linear-gradient(top, #000 70%, rgba(0, 0, 0, 0));

        .wrapper {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            transform: translateY(0);
            transition: transform .3s;

            p {
                padding-bottom: 0.2rem;
                height: .5rem;
                line-height: .5rem;
                text-align: center;
                font-size: .3rem;

                color: @CH;
                .text-clip;

                &.active {
                    color: @CW;
                    transition: color .3s;
                }
            }
        }
    }

    .listen-sing {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 0.6rem;
        margin-top: .36rem;

        .sing {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 2.44rem;
            height: 0.6rem;
            margin-right: .02rem;

            .right-blue {
                height: 0.3rem;
                position: relative;
                left: -.3rem;
            }

            .singing {
                height: 0.5rem;
            }
        }

        .division {
            height: 14px;
            width: 1px;
            background: hsla(0, 0%, 100%, .2);
        }

        .listen {
            display: flex;
            width: 2.4rem;
            height: 0.6rem;
            align-items: center;
            justify-content: center;
            color: hsla(0, 0%, 100%, .8);
            font-size: 14px;

            .arrow {
                height: 0.3rem;
            }

            .icon {
                display: inline-block;
                background: url(../images/objxiaoren.png);
                background-size: cover;
                width: 0.4rem;
                height: 0.4rem;
                margin-right: .08rem;
            }

        }

    }
}

// 尾部
.footer-box {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 0 0.1rem;

    .download {
        display: block;
        width: 100%;
        height: .8rem;
        line-height: .8rem;
        border-radius: .5rem;
        font-size: .36rem;
        color: @CW;
        text-align: center;
        margin-left: .2rem;
        background-color: @CG;
        // &:active {
        //     background-color: darken(@CG, 10%);
        // }
    }

    .open {
        border: #ff3a3a .01px solid;
        display: block;
        width: 100%;
        height: .8rem;
        line-height: .8rem;
        border-radius: .5rem;
        font-size: .36rem;
        color: @CG;
        text-align: center;
    }


    // .progress {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .already,
    .duration {
        width: 1rem;
        height: .92rem;
        line-height: .92rem;
        text-align: center;
        font-size: .24rem;
        color: @CH;
    }

    .back {
        position: relative;
        flex-grow: 1;
        height: .04rem;
        background: @CH;

        .rate {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0;
            background: @CG;
            transition: width .1s;
        }
    }

    // }
}

#myAudio {
    display: none;
}